home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Interface Classes / CPPSound.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  614 b   |  37 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/2/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPSound
  6.     
  7.     SUPERCLASS: CPPObject
  8.     
  9.         This C++ class manages the loading, playing, and disposing 
  10.         of snd resources
  11.     
  12. ********************************************************************/
  13.  
  14.  
  15. #pragma once
  16.  
  17. #include <CPPObject.h>
  18. #include <Sound.h>
  19.  
  20. class CPPSound : CPPObject {
  21.  
  22. public:
  23.             CPPSound (short ResID);
  24.             ~CPPSound (void);
  25.     
  26.     virtual    char    *ClassName (void);
  27.     
  28.     void    PlaySound (Boolean    PlayAsync);
  29.     
  30. private:
  31.     short            theSoundID;
  32.     SndChannelPtr    theSoundChannel;
  33.     Handle            theSound;
  34. };
  35.  
  36.  
  37.